package com.rcadmin.common.prop;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 资源文件的属性配置,对应application.properties
 * 
 * @author tanson lam
 * @create 2016年10月18日
 */
@Component
@ConfigurationProperties(prefix = "fileRes")
public class FileResProp {
	/**
	 * 拦截资源的url
	 */
	public static String urlPrefix;
	/**
	 * 上传的文件目录
	 */
	public static String uploadDir;

	public String getUrlPrefix() {
		return urlPrefix;
	}

	public void setUrlPrefix(String urlPrefix) {
		this.urlPrefix = urlPrefix;
	}

	public String getUploadDir() {
		return uploadDir;
	}

	public void setUploadDir(String uploadDir) {
		this.uploadDir = uploadDir;
	}

}